import {request} from '../request'

// 申请好友之前查询用户
export function selectUserBeforeApplyFriend(data) {
  return request({
    url: '/userRelation/selectUserBeforeApplyFriend',
    method: 'post',
    data: data
  })
}
// 根据用户id查询用户所有分组
export function selectUserGroupInfo(data) {
  return request({
    url: '/userRelation/selectUserGroupInfo',
    method: 'post',
    data: data
  })
}
// 根据用户id添加分组
export function addUserGroupInfo(data) {
  return request({
    url: '/userRelation/addUserGroupInfo',
    method: 'post',
    data: data
  })
}
// 创建一条新的记录到user_apply_friend
export function addApplyFriendInfo(data) {
  return request({
    url: '/userRelation/addApplyFriendInfo',
    method: 'post',
    data: data
  })
}
// 新朋友页面查询
export function selectNewFriendPageData(data) {
  return request({
    url: '/userRelation/selectNewFriendPageData',
    method: 'post',
    data: data
  })
}
